import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
// import VueSocketio from 'vue-socket.io'
import socketio from 'socket.io-client'
import VuePdfReader from 'vue-pdf-reader/dist/vue-pdf-reader.min.js'

import 'vuetify/dist/vuetify.min.css'
import '@mdi/font/css/materialdesignicons.min.css'
import 'font-awesome/css/font-awesome.min.css'
import 'vue-pdf-reader/dist/vue-pdf-reader.min.css'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.config.productionTip = true

Vue.use(require('vuetify/dist/vuetify'), { iconfont: 'mdi' })
const socket = socketio(store.state.startmenu.conn.url)

window.Vue = Vue
window.ebus = new Vue()
Vue.use(VuePdfReader)
// Vue.use(Vuetify)
Vue.prototype.$socket = socket
// Vue.prototype.$pdfjs = require('pdfjs-dist/build/')

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
